package com.design.bridge;

/**
 * 桥接模式
 */
public class Main {
    public static void main(String[] args) {
        Implementor implementorA = new ConcreteImplementorA();
        Implementor implementorB = new ConcreteImplementorB();

        Abstraction abstractionA = new ConcreteAbstractionA(implementorA);
        abstractionA.operation();

        Abstraction abstractionB = new ConcreteAbstractionB(implementorB);
        abstractionB.operation();
    }
}
